
include ../../../../conf/include.mk

TEST_PATH = -pa ../../ebin ../ebin ../../../../../mochiweb/ebin/

EBIN_FILES = ../ebin/ewgi_unit.beam \
	../ebin/mochiweb_simple_get.beam \
	../ebin/mochiweb_simple_post.beam \

ERLC_FLAGS+= -pa ../../ebin

all: $(EBIN_FILES) test

test_verbose:
	$(ERL) -noshell $(TEST_PATH) -s ewgi_unit run_verbose mochiweb_simple_get mochiweb_simple_post -s init stop

test:
	$(ERL) -noshell $(TEST_PATH) -s ewgi_unit run mochiweb_simple_get mochiweb_simple_post -s init stop

clean:
	rm -f ../ebin/*.beam
